toNotEmptyListOrNull

Returns a NotEmptyList containing all the elements of this array, or returns null if this array is empty.


Returns a NotEmptyList containing all the elements of this collection, or returns null if this collection is empty.